using System;
using System.Windows.Forms;
using System.Drawing;

namespace DrawTools
{
	/// <summary>
	/// Ellipse tool
	/// </summary>
	class ToolEllipse : ToolRectangle
	{
		public ToolEllipse()
		{
            Cursor = new Cursor(Common.FunctionClass.getRunPath() + @"\Resources\Ellipse.cur");
		}

        public override void OnMouseDown(KKDraw drawArea, MouseEventArgs e)
        {
            Point point = drawArea.BackTrackMouse(new Point(e.X, e.Y));
            AddNewObject(drawArea, new DrawEllipse(point.X, point.Y, 1, 1));
        }

	}
}
